/*******************************************************************
 * Copyright (C) yel_hb-USTC, 2012                                
 *                                                                  
 * FILE NAME             :  OjaRule.h                                 
 * PRINCIPAL AUTHOR      :  yel_hb                               
 * MODULE NAME           :  OjaRule                             
 * LANGUAGE              :  C++                                      
 * TARGET ENVIRONMENT    :  windows                                   
 * DATE OF FIRST RELEASE :  2013/1/11                            
 * DESCRIPTION           :  class OjaRule definition
 ******************************************************************/

/*
 * Revision log:
 *
 * Created by yel_hb,2013/1/11
 *
 */

#ifndef OJARULE_H     
#define OJARULE_H    1

#include "dmvector.h"

class OjaRule
{
public:
	OjaRule ();
	OjaRule ( int N, double eta );
	void init ();
	void update ( DMVector X );
private:
	int N;
	double eta;
	DMVector W;
};

#endif